package com.flyduck.vueshop.order.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.flyduck.vueshop.common.mybatis.mapper.BaseMapperX;
import com.flyduck.vueshop.order.entity.AppOrderItem;

import java.util.List;

/**
 * @Entity com.flyduck.entity.AppOrderItem
 */
public interface AppOrderItemMapper extends BaseMapperX<AppOrderItem> {

    default List<AppOrderItem> getAppOrderItemListByOrderId(Long orderId){
        return this.selectList(
                new LambdaQueryWrapper<AppOrderItem>()
                .eq(AppOrderItem::getOrderId,orderId)
        );
    }
}




